import request from '@/utils/request'

// 查询补偿-超时发货记录列表
export function listOvertimeDelivery(query) {
  return request({
    url: '/pdd/OvertimeDelivery/list',
    method: 'get',
    params: query
  })
}

// 查询补偿-超时发货记录详细
export function getOvertimeDelivery(id) {
  return request({
    url: '/pdd/OvertimeDelivery/' + id,
    method: 'get'
  })
}

// 新增补偿-超时发货记录
export function addOvertimeDelivery(data) {
  return request({
    url: '/pdd/OvertimeDelivery',
    method: 'post',
    data: data
  })
}

// 修改补偿-超时发货记录
export function updateOvertimeDelivery(data) {
  return request({
    url: '/pdd/OvertimeDelivery',
    method: 'put',
    data: data
  })
}

// 删除补偿-超时发货记录
export function delOvertimeDelivery(id) {
  return request({
    url: '/pdd/OvertimeDelivery/' + id,
    method: 'delete'
  })
}
